package com.woniu.cms.goods.core.service;

import com.woniu.cms.goods.core.entity.GoodsPayback;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.cms.goods.core.entity.GoodsPaybackMaterial;
import com.woniu.common.api.Result;

import java.util.List;

/**
 * <p>
 * 回缴单表 服务类
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-19
 */
public interface IGoodsPaybackService extends IService<GoodsPayback> {

    Result addPayback(GoodsPayback payback, List<GoodsPaybackMaterial> list);

    Result deletePayback(Integer id, Integer status);

    Result updatePayback(GoodsPayback payback, List<GoodsPaybackMaterial> list);

    Result commitPayback(GoodsPayback payback, List<GoodsPaybackMaterial> list);
}
